import { request, METHOD } from "@/utils/request";
import { DICT_PREFIX } from "./api";

export async function getApi(url, params) {
  return request(DICT_PREFIX + url, METHOD.GET, params);
}

export async function postApi(url, params) {
  return request(DICT_PREFIX + url, METHOD.POST, params);
}

export function fileExport(url, params) {
  return request(DICT_PREFIX + url, METHOD.GET, params, { responseType: 'blob' });
}
